package com.dxy.hms.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dxy.hms.model.entity.Room;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dxy.hms.model.excel.RoomExcel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 房间表 Mapper 接口
 * </p>
 *
 * @author dxy
 * @since 2024-10-29
 */
@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    IPage<Room> findRoomPage(IPage<Room> page,
                             @Param("roomTypeId") Long roomTypeId,
                             @Param("roomStatus") String roomStatus);

    List<RoomExcel> findRoomExcel(@Param("roomTypeId") Long roomTypeId,
                                  @Param("roomStatus") String roomStatus);

    Room findRoomDetail(Long id);

    void delById(Long id);

}
